import com.exercise.practice2.User;
import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class text {
    @Test
    public void test(){
        ClassPathXmlApplicationContext use = new ClassPathXmlApplicationContext("user.xml");
          User user1 = (User) use.getBean("user1");
        User user2 =(User) use.getBean("user2");
        System.out.println(user1+""+user2);
    }
}
